package eop.project;
import eop.project.Damage;

import grails.test.*

class DamageTest extends GrailsUnitTestCase {
    protected void setUp() {
        super.setUp()
    }

    protected void tearDown() {
        super.tearDown()
    }

    void testSomething() {
	mockDomain (Damage)
	Damage d=new Damage(injuries:"21",Houses:"23",numberOfDeaths:"",damages:"")
	d.validate()
	if(d.hasErrors()){
		d.errors.each{ println "volcano error : $it" }
	}
	else
		println "no errors"
	d.save()
	
    }
}
